% $Id: ExperimentSetup.m 7 2009-01-27 12:46:40Z Jie.Bao $

classdef ExperimentSetup
%EXPERIMENTSETUP defines variables for the experiment
%   


   properties
       LogFormat = '%f,%f,%f,%f,%f,%f,%f';
       EventFileFormat = '%f,%f,%f,%f,%f,%f,%f,%s';
       
       %Directory Information
       %all thigns should be under Main Log. All paths relative from there.
       %ALL DIRECTORIES MUST HAVE TRAILING /
       MapDirectory = 'C:\Dokumente und Einstellungen\student\Desktop\jie\simon\mini_labyrinthe\';   
       MapName = 'zinabox.obj';
       MainLogDirectory = 'C:\Dokumente und Einstellungen\student\Desktop\jie\simon\pilotdaten'
       OutPutDirectory = 'C:\Dokumente und Einstellungen\student\Desktop\jie\simon'; 
       T = 1;
       X = 2;
       Y = 3;
       %Z = 4;
       H = 4;
       %R = 6;
       %P = 7
       %E = 8;
       Conditions = {'Maze', 'Task', 'Ball'};
       LogMeta = {'Subject', 'Maze', 'Task', 'Ball', 'Trial'};
       LogNaming = '%f_%s_%s_%s_%f';
       OutputPath ;
       MetaTitles;
       PointingTask = 'pointing';
       ExpType = 'PathChoice';
       Floor;
       Scale = 1;  % rescale the map
       TransformX = 0;  % transform the map on the x-axis
       TransformY = 0;  % transform the map on the y-axis
   end

   methods
       function obj = ExperimentSetup()
           % load the map
           if strcmp(obj.ExpType, 'PathChoice')
               disp('Loading the map...')
               tic
               obj.Floor = OBJFloorLoader([obj.MapDirectory '/' ...
                                           obj.MapName]);
               toc
           end
       end
   end
end 
